package com.jhgsys.internal.incentive.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;


/**
 * 安全奖励申请 Entity
 *
 * @author wanghjw
 * @date 2024-09-03 14:08:36
 */
@Data
@TableName("incentive_reward_apply")
public class IncentiveRewardApply implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "reward_apply_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String rewardApplyId;

    /**
     * 公司Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 奖励申请编号;年+公司编码+序列号（5位）
     */
    @TableField("reward_apply_no")
    @NotBlank(message = "{required}")
    @Size(max = 64, message = "{noMoreThan}")
    private String rewardApplyNo;

    /**
     * 奖励类型;1：个人奖励 2：活动奖励
     */
    @TableField("reward_type")
    @Size(max = 2, message = "{noMoreThan}")
    private String rewardType;

    /**
     * 奖励原因
     */
    @TableField("reward_reason")
    @NotBlank(message = "{required}")
    @Size(max = 800, message = "{noMoreThan}")
    private String rewardReason;

    /**
     * 奖励条款Id
     */
    @TableField("reward_clause_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String rewardClauseId;

    /**
     * 奖励条款
     */
    @TableField("reward_clause")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String rewardClause;

    /**
     * 奖励条款规则Id
     */
    @TableField("reward_clause_rule_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String rewardClauseRuleId;

    /**
     * 奖励条款
     */
    @TableField("reward_clause_rule")
    @Size(max = 150, message = "{noMoreThan}")
    private String rewardClauseRule;

    /**
     * 是否奖励金额;0：否 1：是
     */
    @TableField("reward_amount_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String rewardAmountFlg;

    /**
     * 奖励金额
     */
    @TableField("reward_amount")
    private BigDecimal rewardAmount;
    /**
     * 开户行名称
     */
    @TableField("bank_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String bankName;

    /**
     * 银行卡号
     */
    @TableField("bank_code")
    @Size(max = 64, message = "{noMoreThan}")
    private String bankCode;

    /**
     * 是否奖励积分;0：否 1：是
     */
    @TableField("reward_score_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String rewardScoreFlg;

    /**
     * 奖励积分
     */
    @TableField("reward_score")
    private Integer rewardScore;

    /**
     * 是否奖励物品;0：否 1：是
     */
    @TableField("reward_goods_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String rewardGoodsFlg;

    /**
     * 申请人Id
     */
    @TableField("apply_user_id")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String applyUserId;

    /**
     * 申请人工号
     */
    @TableField("apply_user_no")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String applyUserNo;

    /**
     * 申请人姓名
     */
    @TableField("apply_real_name")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String applyRealName;

    /**
     * 申请时间
     */
    @TableField("apply_data")
    private Date applyData;

    /**
     * 审核用户Id
     */
    @TableField("audit_user_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String auditUserId;

    /**
     * 审核用户姓名
     */
    @TableField("audit_real_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String auditRealName;

    /**
     * 审核备注
     */
    @TableField("audit_remark")
    @Size(max = 800, message = "{noMoreThan}")
    private String auditRemark;

    /**
     * 审核时间
     */
    @TableField("audit_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date auditDate;

    /**
     * 签发人Id
     */
    @TableField("issuance_user_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String issuanceUserId;

    /**
     * 签发人姓名
     */
    @TableField("issuance_real_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String issuanceRealName;

    /**
     * 签发时间
     */
    @TableField("issuance_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date issuanceDate;

    /**
     * 签发备注
     */
    @TableField("issuance_remark")
    @Size(max = 800, message = "{noMoreThan}")
    private String issuanceRemark;

    /**
     * 状态;1：待提交 2：待审核 3：审核退回 4：待签发 5：签发退回 6：已签发
     */
    @TableField("status")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String status;

    /**
     * 新增人
     */
    @TableField("created_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String createdBy;

    /**
     * 新增时间
     */
    @TableField("created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 修改人
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 修改时间
     */
    @TableField("updated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 删除人
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     * 删除时间
     */
    @TableField("deleted_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 删除标记
     */
    @TableField("deleted_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String deletedFlg;

    /**
     * 删除备注
     */
    @TableField("deleted_remark")
    @Size(max = 800, message = "{noMoreThan}")
    private String deletedRemark;


    /**
     * 奖励额度
     */
    @TableField("rewarded_quota")
    private BigDecimal rewardedQuota;

}